home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / CSHELL / CSHELL_M.C < prev   
Text File  |  1992-07-19  |  7KB  |  519 lines

  1.  
  2. /*
  3.  *  Mac #includes.c - source to MacHeaders
  4.  *
  5.  *  To add a header, change its "#if 0" to "#if 1".
  6.  *
  7.  *  To remove a header, change its "#if 1" to "#if 0".
  8.  *
  9.  *  There are some conflicts and order dependencies among the various
  10.  *  headers:
  11.  *
  12.  *    Ñ    <Printing.h> and <PrintTraps.h> cannot both be included.
  13.  *
  14.  *    Ñ    <LoMem.h> and <SysEqu.h> cannot both be included.
  15.  *
  16.  *    Ñ    <asm.h> and <Traps.h>, if both are included, must appear
  17.  *        in that order.  If <Traps.h> is included, traps used in
  18.  *        inline assembly must appear without leading underscores.
  19.  *
  20.  *  If the "Check Pointer Types" option is disabled during the
  21.  *  precompilation process, trap definitions will be stored in
  22.  *  such a way that when a trap is called (in a source file that
  23.  *  #includes the precompiled header), pointer arguments to the
  24.  *  trap will not be matched against the types of corresponding
  25.  *  formal parameters.
  26.  *
  27.  *  This is accomplished by storing "simplified" prototypes for
  28.  *  traps, in which any argument of pointer type is stored as
  29.  *  "void *".  The result closely resembles the treatment of traps
  30.  *  in pre-5.0 versions of THINK C.
  31.  *
  32.  *  (Note that this file is written in such a way that it is immune
  33.  *  to the actual compiler setting of "Check Pointer Types".  Use
  34.  *  the "SIMPLIFY_PROTOTYPES" macro, below, to control whether full
  35.  *  prototypes are retained.)
  36.  *
  37.  */
  38.  
  39. #define _H_MacHeaders
  40.  
  41.  
  42. // set this to 0 (zero) to retain full prototypes
  43. // set this to 1 (one) for "simplified" prototypes
  44. #define SIMPLIFY_PROTOTYPES        0
  45.  
  46.  
  47. // prototype checking level
  48. #if SIMPLIFY_PROTOTYPES
  49.     #if !__option(check_ptrs)
  50.         #undef SIMPLIFY_PROTOTYPES
  51.     #endif
  52.     #pragma options(!check_ptrs)
  53. #else
  54.     #if __option(check_ptrs)
  55.         #undef SIMPLIFY_PROTOTYPES
  56.     #endif
  57.     #pragma options(check_ptrs)
  58. #endif
  59.  
  60.  
  61. // ADSP
  62.     #if 0
  63.         #include <ADSP.h>
  64.     #endif
  65.  
  66. // AIFF
  67.     #if 0
  68.         #include <AIFF.h>
  69.     #endif
  70.  
  71. // Aliases
  72.     #if 0
  73.         #ifdef __APPLETALK__
  74.             #include <Aliases.h>
  75.         #else
  76.             #define __APPLETALK__            // suppress unnecessary #include <AppleTalk.h>
  77.             #include <Aliases.h>
  78.             #undef __APPLETALK__
  79.         #endif
  80.     #endif
  81.  
  82. // AppleEvents
  83.     #if 1
  84.         #ifdef __EPPC__
  85.             #include <AppleEvents.h>
  86.         #else
  87.             #define __EPPC__                // suppress unnecessary #include <EPPC.h>
  88.             #include <AppleEvents.h>
  89.             #undef __EPPC__
  90.         #endif
  91.     #endif
  92.  
  93. // AppleTalk
  94.     #if 0
  95.         #include <AppleTalk.h>
  96.     #endif
  97.  
  98. // Balloons
  99.     #if 1
  100.         #ifdef __TRAPS__
  101.             #include <Balloons.h>
  102.         #else
  103.             #define __TRAPS__                // suppress unnecessary #include <Traps.h>
  104.             #define _Pack14 0xA830            // (well, mostly unnecessary...)
  105.             #include <Balloons.h>
  106.             #undef _Pack14
  107.             #undef __TRAPS__
  108.         #endif
  109.     #endif
  110.  
  111. // BDC
  112.     #if 1
  113.         #include <BDC.h>
  114.     #endif
  115.  
  116. // CommResources
  117.     #if 0
  118.         #include <CommResources.h>
  119.     #endif
  120.  
  121. // Connections
  122.     #if 0
  123.         #include <Connections.h>
  124.     #endif
  125.  
  126. // ConnectionTools
  127.     #if 0
  128.         #include <ConnectionTools.h>
  129.     #endif
  130.  
  131. // Controls
  132.     #if 1
  133.         #include <Controls.h>
  134.     #endif
  135.  
  136. // CRMSerialDevices
  137.     #if 0
  138.         #include <CRMSerialDevices.h>
  139.     #endif
  140.  
  141. // CTBUtilities
  142.     #if 0
  143.         #include <CTBUtilities.h>
  144.     #endif
  145.  
  146. // DatabaseAccess
  147.     #if 0
  148.         #include <DatabaseAccess.h>
  149.     #endif
  150.  
  151. // Desk
  152.     #if 1
  153.         #include <Desk.h>
  154.     #endif
  155.  
  156. // DeskBus
  157.     #if 0
  158.         #include <DeskBus.h>
  159.     #endif
  160.  
  161. // Devices
  162.     #if 1
  163.         #include <Devices.h>
  164.     #endif
  165.  
  166. // Dialogs
  167.     #if 1
  168.         #include <Dialogs.h>
  169.     #endif
  170.  
  171. // DiskInit
  172.     #if 1
  173.         #include <DiskInit.h>
  174.     #endif
  175.  
  176. // Disks
  177.     #if 0
  178.         #include <Disks.h>
  179.     #endif
  180.  
  181. // Editions
  182.     #if 0
  183.         #include <Editions.h>
  184.     #endif
  185.  
  186. // ENET
  187.     #if 0
  188.         #include <ENET.h>
  189.     #endif
  190.  
  191. // EPPC
  192.     #if 1
  193.         #include <EPPC.h>
  194.     #endif
  195.  
  196. // Errors
  197.     #if 1
  198.         #include <Errors.h>
  199.     #endif
  200.  
  201. // Events
  202.     #if 1
  203.         #include <Events.h>
  204.     #endif
  205.  
  206. // Files
  207.     #if 1
  208.         #include <Files.h>
  209.     #endif
  210.  
  211. // FileTransfers
  212.     #if 0
  213.         #include <FileTransfers.h>
  214.     #endif
  215.  
  216. // FileTransferTools
  217.     #if 0
  218.         #include <FileTransferTools.h>
  219.     #endif
  220.  
  221. // Finder
  222.     #if 1
  223.         #include <Finder.h>
  224.     #endif
  225.  
  226. // FixMath
  227.     #if 1
  228.         #include <FixMath.h>
  229.     #endif
  230.  
  231. // Folders
  232.     #if 0
  233.         #include <Folders.h>
  234.     #endif
  235.  
  236. // Fonts
  237.     #if 1
  238.         #include <Fonts.h>
  239.     #endif
  240.  
  241. // GestaltEqu
  242.     #if 1
  243.         #include <GestaltEqu.h>
  244.     #endif
  245.  
  246. // Graf3D
  247.     #if 0
  248.         #include <Graf3D.h>
  249.     #endif
  250.  
  251. // HyperXCmd
  252.     #if 0
  253.         #include <HyperXCmd.h>
  254.     #endif
  255.  
  256. // Icons
  257.     #if 0
  258.         #include <Icons.h>
  259.     #endif
  260.  
  261. // Language
  262.     #if 0
  263.         #include <Language.h>
  264.     #endif
  265.  
  266. // Lists
  267.     #if 1
  268.         #include <Lists.h>
  269.     #endif
  270.  
  271. // Memory
  272.     #if 1
  273.         #include <Memory.h>
  274.     #endif
  275.  
  276. // Menus
  277.     #if 1
  278.         #include <Menus.h>
  279.     #endif
  280.  
  281. // MIDI
  282.     #if 0
  283.         #include <MIDI.h>
  284.     #endif
  285.  
  286. // Notification
  287.     #if 1
  288.         #include <Notification.h>
  289.     #endif
  290.  
  291. // OSEvents
  292.     #if 1
  293.         #include <OSEvents.h>
  294.     #endif
  295.  
  296. // OSUtils
  297.     #if 1
  298.         #include <OSUtils.h>
  299.     #endif
  300.  
  301. // Packages
  302.     #if 0
  303.         #include <Packages.h>
  304.     #endif
  305.  
  306. // Palette
  307.     #if 0
  308.         #include <Palette.h>
  309.     #endif
  310.  
  311. // Palettes
  312.     #if 0
  313.         #include <Palettes.h>
  314.     #endif
  315.  
  316. // Picker
  317.     #if 0
  318.         #include <Picker.h>
  319.     #endif
  320.  
  321. // PictUtil
  322.     #if 0
  323.         #include <PictUtil.h>
  324.     #endif
  325.  
  326. // Power
  327.     #if 0
  328.         #include <Power.h>
  329.     #endif
  330.  
  331. // PPCToolBox
  332.     #if 1
  333.         #include <PPCToolBox.h>
  334.     #endif
  335.  
  336. // Printing
  337.     #if 0
  338.         #include <Printing.h>
  339.     #endif
  340.  
  341. // PrintTraps
  342.     #if 1
  343.         #include <PrintTraps.h>
  344.     #endif
  345.  
  346. // Processes
  347.     #if 1
  348.         #include <Processes.h>
  349.     #endif
  350.  
  351. // QDOffscreen
  352.     #if 0
  353.         #include <QDOffscreen.h>
  354.     #endif
  355.  
  356. // Quickdraw
  357.     #if 1
  358.         #include <Quickdraw.h>
  359.     #endif
  360.  
  361. // Resources
  362.     #if 1
  363.         #include <Resources.h>
  364.     #endif
  365.  
  366. // Retrace
  367.     #if 0
  368.         #include <Retrace.h>
  369.     #endif
  370.  
  371. // ROMDefs
  372.     #if 0
  373.         #include <ROMDefs.h>
  374.     #endif
  375.  
  376. // SANE
  377.     #if 0
  378.         #include <SANE.h>
  379.     #endif
  380.  
  381. // Scrap
  382.     #if 1
  383.         #include <Scrap.h>
  384.     #endif
  385.  
  386. // Script
  387.     #if 0
  388.         #include <Script.h>
  389.     #endif
  390.  
  391. // SCSI
  392.     #if 0
  393.         #include <SCSI.h>
  394.     #endif
  395.  
  396. // SegLoad
  397.     #if 1
  398.         #include <SegLoad.h>
  399.     #endif
  400.  
  401. // Serial
  402.     #if 0
  403.         #include <Serial.h>
  404.     #endif
  405.  
  406. // ShutDown
  407.     #if 0
  408.         #include <ShutDown.h>
  409.     #endif
  410.  
  411. // Slots
  412.     #if 0
  413.         #include <Slots.h>
  414.     #endif
  415.  
  416. // Sound
  417.     #if 0
  418.         #include <Sound.h>
  419.     #endif
  420.  
  421. // SoundInput
  422.     #if 0
  423.         #include <SoundInput.h>
  424.     #endif
  425.  
  426. // StandardFile
  427.     #if 1
  428.         #include <StandardFile.h>
  429.     #endif
  430.  
  431. // Start
  432.     #if 0
  433.         #include <Start.h>
  434.     #endif
  435.  
  436. // SysEqu
  437.     #if 1
  438.         #include <SysEqu.h>
  439.     #endif
  440.  
  441. // Terminals
  442.     #if 0
  443.         #include <Terminals.h>
  444.     #endif
  445.  
  446. // TerminalTools
  447.     #if 0
  448.         #include <TerminalTools.h>
  449.     #endif
  450.  
  451. // TextEdit
  452.     #if 1
  453.         #include <TextEdit.h>
  454.     #endif
  455.  
  456. // Timer
  457.     #if 1
  458.         #include <Timer.h>
  459.     #endif
  460.  
  461. // ToolUtils
  462.     #if 1
  463.         #include <ToolUtils.h>
  464.     #endif
  465.  
  466. // Types
  467.     #if 1
  468.         #include <Types.h>
  469.     #endif
  470.  
  471. // Values
  472.     #if 0
  473.         #include <Values.h>
  474.     #endif
  475.  
  476. // Video
  477.     #if 0
  478.         #include <Video.h>
  479.     #endif
  480.  
  481. // Windows
  482.     #if 1
  483.         #include <Windows.h>
  484.     #endif
  485.  
  486. // pascal.h
  487.     #if 1
  488.         #include <pascal.h>
  489.     #endif
  490.  
  491. // asm.h
  492.     #if 1
  493.         #include <asm.h>
  494.     #endif
  495.  
  496. // LoMem
  497.     #if 0
  498.         #include <LoMem.h>
  499.     #endif
  500.  
  501. // THINK
  502.     #if 1
  503.         #include <THINK.h>
  504.     #endif
  505.  
  506. // Traps
  507.     #if 1
  508.         #include <Traps.h>
  509.     #endif
  510.  
  511.  
  512. // restore "Check Pointer Types" to previous setting
  513. #if SIMPLIFY_PROTOTYPES
  514.     #pragma options(check_ptrs)
  515. #elif defined(SIMPLIFY_PROTOTYPES)
  516.     #pragma options(!check_ptrs)
  517. #endif
  518. #undef SIMPLIFY_PROTOTYPES
  519.